package com.neusoft.controller.registration;

import com.neusoft.service.SettleCategoryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;
import java.util.Map;

@RestController
@RequestMapping("/settlecategroys")
//@CrossOrigin
public class SettleCategoryController {
    @Autowired
    SettleCategoryService settleCategoryService;

    @GetMapping("/getSettleCategroyList")
    public List<Map<String,Object>> getSettleCategroyList(){
        List<Map<String,Object>> list=settleCategoryService.getSettleCategroyList();
        return list;
    }
}
